<!DOCTYPE html>
<html style="height:100%;"><head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <meta property="qc:admins" content="135340217545216112633">
    <meta name="viewport" content="user-scalable=no, width=device-width, initial-scale=1, maximum-scale=2">
    <meta content="telephone=no" name="format-detection">
    <meta charset="utf-8">
    <meta name="copyright" content="">
    <meta name="Keywords" content="">
    <meta name="description" content="">
    <title>中石化助力青运，一路“油”你</title>
    <link href="__PUBLIC__/Css/common.css" rel="stylesheet" />
	<link href="__PUBLIC__/Css/page.css" rel="stylesheet" />
    </head>
<body onload="loaded()">
<div class="page" id="advert">
    <div class="index_bg">
        <img src="__PUBLIC__/Images/ad_bg.jpg" style="width:100%;min-height:100%;"/>
    </div>
    <div class="top_info" >
        <div class="top_left_first">
				<li id="li-1">
					<img src="__PUBLIC__/Images/ad_avatar.png"/>
				</li>
				<li id="li-2">车e族</li>
		</div>
		<div class="top_left_second">
			<li id="li-3">福建中石化车e族</li>
			<li id="li-4">应用宝下载或长按二维码下载&nbsp;>></li>
		</div>
		<div class="top_right">
			<img src="__PUBLIC__/Images/ad_code.png"/>
		</div>
    </div>
    <div class="middle_product">
        <img src="__PUBLIC__/Images/ad_proimg.png" style="width:100%;"/>
    </div>
	 <div class="bottom_word">
        <p><i>质优商品</i><span id="left_time" style="margin-left:22%;color:#E62B2C;font-size:22px;"></span></p>
		<p><i>中石化</i>（森美）加油站<i style="padding-left:3px;">易捷</i>便利店内有售</p>
    </div>
</div>
<script type="text/javascript" src="__PUBLIC__/Js/jquery-1.11.3.min.js"></script>
<script type="text/javascript" src="http://res.wx.qq.com/open/js/jweixin-1.0.0.js"></script>
<script>
    $(function(){

        fenxiang("助力青运，一路“油”你","助力青运，一路“油”你");
    })

    function fenxiang(title,desc){
        //微信分享
        wx.config({
            debug: false, // 开启调试模式,调用的所有api的返回值会在客户端alert出来，若要查看传入的参数，可以在pc端打开，参数信息会通过log打出，仅在pc端时才会打印。
            appId: "{:C('APPID')}", // 必填，公众号的唯一标识
            timestamp: "{$wxKey['timestamp']}", // 必填，生成签名的时间戳
            nonceStr: "{$wxKey['noncestr']}", // 必填，生成签名的随机串
            signature: "{$wxKey['signature']}",// 必填，签名，见附录1
            jsApiList: ['onMenuShareTimeline','onMenuShareAppMessage'] // 必填，需要使用的JS接口列表，所有JS接口列表见附录2
        });
        wx.ready(function () {
            var shareData = {
                title: title,
                desc: desc,
                link: "http://{$_SERVER['HTTP_HOST']}",
                imgUrl: "{:C('APP_URL')}/Public/Images/1.jpg"
            };
            wx.onMenuShareAppMessage(shareData);
            wx.onMenuShareTimeline(shareData);
        });
        wx.error(function(res){
            alert(res.errMsg);
        });
    }

	function countdown(){
		if(lefttime!=1){
			lefttime--;
			$('#left_time').html(lefttime);
		}else{
			clearInterval(timer);
			location.href="gift.html?sourcePage=advert";
		}
	}
	function loaded(){
		lefttime=3;
		$("#left_time").html(lefttime);
		timer=setInterval("countdown()",1000);
	}
</script>
</body>
</html>